using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using System.Reflection;
using System.IO;

namespace Nairo
{
	public partial class NairoTestForm : System.Windows.Forms.Form
	{
		protected string myHTMLFile;

		public NairoTestForm()
		{
			InitializeComponent();

			this.LoadFile(@"TestFiles\\Test1.html");
		}

		public void LoadFile(string sFileName)
		{
			this.htmlPanel1.OpenFile(sFileName);
			this.txtSource.Text = new StreamReader(sFileName).ReadToEnd();
		}
		
		void LoadToolStripMenuItemClick(object sender, EventArgs e)
		{
			if (oFD.ShowDialog() == DialogResult.OK) {
				this.LoadFile(oFD.FileName);
			}
		}
	}
}
